<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_registration_form.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_registration_form.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_registration_form',
                    name: 'T_registration_form',
                    url: "/T_registration_form/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_course_voucher_id":"","c_create_time":"","c_credential_id":"","c_credential_type":"","c_email":"","c_gender":"","c_id":"","c_name":"","c_phone":"","c_photo":"","c_remark":"","c_ski_level":""},
                editFormOptions: [[{"title":"c_course_voucher_id","field":"c_course_voucher_id","type":"text"},
                               {"title":"c_create_time","field":"c_create_time","disabled":true,"type":"datetime"},
                               {"title":"c_credential_id","field":"c_credential_id","type":"text"}],
                              [{"title":"c_credential_type","field":"c_credential_type","type":"text"},
                               {"title":"c_email","field":"c_email","type":"text"},
                               {"title":"c_gender","field":"c_gender","type":"text"}],
                              [{"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_name","field":"c_name","type":"text"},
                               {"title":"c_phone","field":"c_phone","type":"text"}],
                              [{"title":"c_photo","field":"c_photo","type":"text"},
                               {"title":"c_remark","field":"c_remark","type":"text"},
                               {"title":"c_ski_level","field":"c_ski_level","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_course_voucher_id',title:'c_course_voucher_id',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_create_time',title:'c_create_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_credential_id',title:'c_credential_id',type:'string',width:120,align:'left'},
                       {field:'c_credential_type',title:'c_credential_type',type:'string',width:120,align:'left'},
                       {field:'c_email',title:'c_email',type:'string',width:120,align:'left'},
                       {field:'c_gender',title:'c_gender',type:'int',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_name',title:'c_name',type:'string',width:120,align:'left'},
                       {field:'c_phone',title:'c_phone',type:'string',width:120,align:'left'},
                       {field:'c_photo',title:'c_photo',type:'string',width:120,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,align:'left'},
                       {field:'c_ski_level',title:'c_ski_level',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
